package com.zeildlin.seecode;

import com.zeildlin.seecode.util.SentitiveFilter;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;

@SpringBootTest
@ContextConfiguration(classes = SeecodeApplication.class)
public class SensitiveText {
    @Autowired
    SentitiveFilter sentitiveFilter;
    @Test
    public void textSensititiveFilter(){
        String Text = "吸毒,阿士大夫吸,毒奥术大师,吸毒";
        Text = sentitiveFilter.filter(Text);
        System.out.println(Text);
    }
}
